<!DOCTYPE html PUBLIC 
	"-//W3C//DTD XHTML 1.1 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@taglib prefix="s" uri="/struts-tags"%>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><s:text name="loan.show" /></title>
<s:head />
</head>

<body>
<table border="1" cellspacing="0" cellpadding="1">
	<tr>
		<th><s:text name="loan.user" /></th>
		<th><s:text name="loan.unit" /></th>
		<th><s:text name="loan.startDate" /></th>
		<th><s:text name="loan.endDate" /></th>
		<th><s:text name="loan.devolutionDate" /></th>
	</tr>
	<s:iterator value="loans" status="rowstatus">
		<s:if test="#rowstatus.odd == true">
			<tr style="background: grey">
				<td><s:property value="user.login" /></td>
				<td><s:property value="unit.resource.title" /></td>
				<td><s:property value="startDate" /></td>
				<td><s:property value="endDate" /></td>
				<td><s:property value="devolutionDate" /></td>
			</tr>
		</s:if>
		<s:else>
			<tr>
				<td><s:property value="user.login" /></td>
				<td><s:property value="unit.resource.title" /></td>
				<td><s:property value="startDate" /></td>
				<td><s:property value="endDate" /></td>
				<td><s:property value="devolutionDate" /></td>
			</tr>
		</s:else>
	</s:iterator>
</table>
<p></p>
	<s:form action="create" namespace="/loan">
		<s:textfield key="loan.user" name="user"/>
		<s:textfield key="loan.unit" name="unit" />
		<s:textfield key="loan.days" name="days" value="20" />
		<s:submit />
	</s:form>
<p></p>
<s:url id="fines" action="fine" namespace="/loan" includeParams="none" />
<a href="${fines}"><s:text name="user.fine" /></a>

</body>
</html>

